home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / pcmciautils.postrm < prev    next >
Text File  |  2009-03-09  |  746b  |  37 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. abort_rm_conffile () {
  5.     CONFFILE="$1"
  6.     ACTION="$2"
  7.  
  8.     if [ "$ACTION" = remove ]; then
  9.         if [ -e "$CONFFILE".moved-by-preinst ]; then
  10.             echo "Aborting removal of obsolete conffile $CONFFILE"
  11.             mv -f "$CONFFILE".moved-by-preinst "$CONFFILE"
  12.         fi
  13.     fi
  14. }
  15.  
  16. case $1 in
  17.     abort-install|abort-upgrade)
  18.         if dpkg --compare-versions "$2" lt 014-4ubuntu2; then
  19.             abort_rm_conffile /etc/udev/rules.d/85-pcmcia.rules remove
  20.         fi
  21.         ;;
  22.     purge)
  23.         rm -f /etc/default/pcmciautils
  24.         rm -f /etc/pcmcia/config.opts /etc/pcmcia/config.opts~
  25.         rmdir /etc/pcmcia || true
  26.         ;;
  27. esac
  28.  
  29. # Automatically added by dh_installinit
  30. if [ "$1" = "purge" ] ; then
  31.     update-rc.d pcmciautils remove >/dev/null || exit $?
  32. fi
  33. # End automatically added section
  34.  
  35.  
  36. exit 0
  37.